package com.fbli.test.service;

import com.fbli.test.common.entity.user.UserLoginResMsg;
import com.fbli.test.entity.User;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface UserService {
    List<User> selectAll();
    User selectByAccount(String account);
    User selectByPrimaryKey(Long id);
    public UserLoginResMsg login(String account, String password, HttpServletRequest request);

    boolean logout();

    boolean addUser(String account, String password);
}
